package com.smart.tools;

/**
 * 
 * 版权所有：xxxxxxx
 * @Description: 消息异常
 * @Title: MessageException.java 
 * @ClassName: MessageException 
 * @author tangyan 
 * @date 2019年2月12日 下午3:13:44 
 * @version V1.0
 */
public class MessageException   extends Exception{
	private String exceptionCode;// 异常码

	private String exceptionMessage;// 异常信息

	public String getExceptionCode() {
		return exceptionCode;
	}

	public void setExceptionCode(String exceptionCode) {
		this.exceptionCode = exceptionCode;
	}

	public String getExceptionMessage() {
		return exceptionMessage;
	}

	public void setExceptionMessage(String exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}

	public MessageException() {
		super();
	}

	/**
	 * @param msg
	 */
	public MessageException(String msg) {
		super(msg);
	}

	/**
	 * 泛金融验证类异常
	 * 
	 * @param exceptionCode
	 *            异常码
	 * @param exceptionMessage
	 *            异常信息
	 */
	public MessageException(String exceptionCode, String exceptionMessage) {
		super();
		this.exceptionCode = exceptionCode;
		this.exceptionMessage = exceptionMessage;
	}

	public String getErrCode() {
		return null;
	}

	public Object[] getArguments() {
		return null;
	}

	@Override
	public String getMessage() {
		return "exceptionMessage=" +( ObjectHelper.isNotEmpty(exceptionMessage) ? exceptionMessage : super.getMessage());
	}

}
